package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.StationDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface ScreenClient {

    /**
     * 只有admin 和 油企可以看
     * */
    @GetMapping("/screen/show")
    public AjaxResult getScreenData(@RequestParam(value = "enterpriseId",required = false) Long enterpriseId);

    /**
     * 加油订单
     * 展示按时间排序查询最新的5条
     * */
    @GetMapping("/screen/order")
    public AjaxResult getOilOrder(@RequestParam(value = "enterpriseId",required = false) Long enterpriseId);

}
